package ar.com.listeners;

import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import ar.com.gastos.Agregar_categoriaActivity;
import ar.com.gastos.MainActivity;

public class MasCategoriaListener implements OnClickListener{

	private MainActivity mainActivity;
	private int id;
	
	public MasCategoriaListener(MainActivity mainActivity, int MAS_CATEGORIA_LISTENER) {
		this.mainActivity = mainActivity;
		this.id = MAS_CATEGORIA_LISTENER;
	}

	

	
	public void onClick(View v) {

		Intent intent = new Intent(mainActivity,
				 Agregar_categoriaActivity.class);
		 
           this.mainActivity.startActivityForResult(intent, this.id);
		
		
	}
	
	
	

	


}
